package it.unisa.beans;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Time;

import javax.persistence.*;
@Entity
public class Comment  {

	@Id
	private int id;
	private Time hour;
	private Date date;
	private int valuation;
	private String text;
	@ManyToOne
	@JoinColumn(name="id_account")
	private Account account;
	@ManyToOne
	@JoinColumn(name="id_photo")
	private Photo photo;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Time getHour() {
		return hour;
	}
	public void setHour(Time hour) {
		this.hour = hour;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public int getValuation() {
		return valuation;
	}
	public void setValuation(int valuation) {
		this.valuation = valuation;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public Photo getPhoto() {
		return photo;
	}
	public void setPhoto(Photo photo) {
		this.photo = photo;
	}
	
	

}
